import request from '@/utils/axios'

export function getPageData(data) {
  return request({
    url: `/admin/pet/type/page`,
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: `/admin/pet/type`,
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: `/admin/pet/type`,
    method: 'put',
    data
  })
}

export function remove(id) {
  return request({
    url: `/admin/pet/type/${id}`,
    method: 'delete'
  })
}